1 <!DOCTYPE html PUBLIC
"-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html>
3 <META http-equiv=
"Content-Type" content=
"text/html; charset=iso-8859-1">
4 <link rel=
"stylesheet" type=
"text/css" href=
"../refdoc.css">
5 <title>Namespace: System.Runtime.Serialization
</title>
8 <h2>Namespace: System.Runtime.Serialization
</h2>
11 <p> The
<a href=
"../System.Runtime.Serialization/System.Runtime.Serialization.html">System.Runtime.Serialization
</a> namespace contains classes that can be used for serializing and deserializing objects. Serialization is the process of converting an object or a graph of objects into a linear sequence of bytes for either storage or transmission to another location. Deserialization is the process of taking in stored information and recreating objects from it.
</p>
12 <p> The
<a href=
"../System.Runtime.Serialization/types/ISerializable.html">ISerializable
</a> interface provides a way for classes to control their own serialization behavior. Classes in the
<a href=
"../System.Runtime.Serialization.Formatters/System.Runtime.Serialization.Formatters.html">System.Runtime.Serialization.Formatters
</a> namespace control the actual formatting of various data types encapsulated in the serialized objects.
</p>
13 <p> Formatters that serialize and deserialize objects to and from a particular format can be found in the
<a href=
"../System.Runtime.Serialization.Formatters/System.Runtime.Serialization.Formatters.html">System.Runtime.Serialization.Formatters
</a> namespace.
</p>
16 <h3>Members of System.Runtime.Serialization Namespace
</h3><b>Classes
</b><dl>
18 <table border=
"1" width=
"90%" style=
"border-collapse: collapse">
20 <th bgcolor=
"#C0C0C0">Class
</th>
21 <th bgcolor=
"#C0C0C0">
26 <td width=
"30%"><a href=
"types/Formatter.html">class Formatter
</a></td>
27 <td width=
"60%"> Provides base functionality for the common language runtime serialization formatters.
31 <td width=
"30%"><a href=
"types/FormatterConverter.html">class FormatterConverter
</a></td>
32 <td width=
"60%"> Represents a base implementation of the
<a href=
"../System.Runtime.Serialization/types/IFormatterConverter.html">IFormatterConverter
</a> interface that uses the
<a href=
"../System/types/Convert.html">Convert
</a> class and the
<a href=
"../System/types/IConvertible.html">IConvertible
</a> interface.
36 <td width=
"30%"><a href=
"types/FormatterServices.html">class FormatterServices
</a></td>
37 <td width=
"60%"> Provides static methods to aid with the implementation of a
<a href=
"../System.Runtime.Serialization/types/Formatter.html">Formatter
</a> for serialization. This class cannot be inherited.
41 <td width=
"30%"><a href=
"types/ObjectIDGenerator.html">class ObjectIDGenerator
</a></td>
42 <td width=
"60%"> Generates IDs for objects.
46 <td width=
"30%"><a href=
"types/ObjectManager.html">class ObjectManager
</a></td>
47 <td width=
"60%"> Keeps track of objects as they are deserialized.
51 <td width=
"30%"><a href=
"types/SerializationBinder.html">class SerializationBinder
</a></td>
52 <td width=
"60%"> Allows users to control class loading and mandate what class to load.
56 <td width=
"30%"><a href=
"types/SerializationException.html">class SerializationException
</a></td>
57 <td width=
"60%"> The exception thrown when an error occurs during serialization or deserialization.
61 <td width=
"30%"><a href=
"types/SerializationInfo.html">class SerializationInfo
</a></td>
62 <td width=
"60%"> Holds all the data needed to serialize or deserialize an object. This class cannot be inherited.
66 <td width=
"30%"><a href=
"types/SerializationInfoEnumerator.html">class SerializationInfoEnumerator
</a></td>
67 <td width=
"60%"> Provides a formatter-friendly mechanism for parsing the data in
<a href=
"../System.Runtime.Serialization/types/SerializationInfo.html">SerializationInfo
</a>. This class cannot be inherited.
71 <td width=
"30%"><a href=
"types/SurrogateSelector.html">class SurrogateSelector
</a></td>
72 <td width=
"60%"> Assists formatters in selection of the serialization surrogate to delegate the serialization or deserialization process to.
77 </dl><br><b>Interfaces
</b><dl>
79 <table border=
"1" width=
"90%" style=
"border-collapse: collapse">
81 <th bgcolor=
"#C0C0C0">Interface
</th>
82 <th bgcolor=
"#C0C0C0">
87 <td width=
"30%"><a href=
"types/IDeserializationCallback.html">interface IDeserializationCallback
</a></td>
88 <td width=
"60%"> Indicates that a class is to be notified when deserialization of the entire object graph has been completed.
92 <td width=
"30%"><a href=
"types/IFormatter.html">interface IFormatter
</a></td>
93 <td width=
"60%"> Provides functionality for formatting serialized objects.
97 <td width=
"30%"><a href=
"types/IFormatterConverter.html">interface IFormatterConverter
</a></td>
98 <td width=
"60%"> Provides the connection between an instance of
<a href=
"../System.Runtime.Serialization/types/SerializationInfo.html">SerializationInfo
</a> and the formatter-provided class best suited to parse the data inside the
<a href=
"../System.Runtime.Serialization/types/SerializationInfo.html">SerializationInfo
</a>.
102 <td width=
"30%"><a href=
"types/IObjectReference.html">interface IObjectReference
</a></td>
103 <td width=
"60%"> Indicates that the current interface implementer is a reference to another object.
107 <td width=
"30%"><a href=
"types/ISerializable.html">interface ISerializable
</a></td>
108 <td width=
"60%"> Allows an object to control its own serialization and deserialization.
112 <td width=
"30%"><a href=
"types/ISerializationSurrogate.html">interface ISerializationSurrogate
</a></td>
113 <td width=
"60%"> Implements a serialization surrogate selector that allows one object to perform serialization and deserialization of another.
117 <td width=
"30%"><a href=
"types/ISurrogateSelector.html">interface ISurrogateSelector
</a></td>
118 <td width=
"60%"> Indicates a serialization surrogate selector class.
123 </dl><br><b>Structures
</b><dl>
125 <table border=
"1" width=
"90%" style=
"border-collapse: collapse">
127 <th bgcolor=
"#C0C0C0">Structure
</th>
128 <th bgcolor=
"#C0C0C0">
133 <td width=
"30%"><a href=
"types/SerializationEntry.html">structure SerializationEntry
</a></td>
134 <td width=
"60%"> Holds the value,
<a href=
"../System/types/Type.html">Type
</a>, and name of a serialized object.
138 <td width=
"30%"><a href=
"types/StreamingContext.html">structure StreamingContext
</a></td>
139 <td width=
"60%"> Describes the source and destination of a given serialized stream, as well as a means for serialization to retain that context and an additional caller-defined context.
144 </dl><br><b>Enumerations
</b><dl>
146 <table border=
"1" width=
"90%" style=
"border-collapse: collapse">
148 <th bgcolor=
"#C0C0C0">Enumeration
</th>
149 <th bgcolor=
"#C0C0C0">
154 <td width=
"30%"><a href=
"types/StreamingContextStates.html">enumeration StreamingContextStates
</a></td>
155 <td width=
"60%"> Defines a set of flags that specifies the source or destination context for the stream during serialization.
160 </dl><br><b>Namepace hierarchy
</b><br><ul class=
"none">
161 <li><a href=
"../System/types/Object.html">System.Object
</a></li>
163 <li><a href=
"../System/types/Exception.html">System.Exception
</a></li>
165 <li><a href=
"../System/types/SystemException.html">System.SystemException
</a></li>
167 <li><a href=
"../System.Runtime.Serialization/types/SerializationException.html">System.Runtime.Serialization.SerializationException
</a></li>
172 <li><a href=
"../System.Runtime.Serialization/types/Formatter.html">System.Runtime.Serialization.Formatter
</a> ---
<a href=
"../System.Runtime.Serialization/types/IFormatter.html">System.Runtime.Serialization.IFormatter
</a></li>
175 <li><a href=
"../System.Runtime.Serialization/types/FormatterConverter.html">System.Runtime.Serialization.FormatterConverter
</a> ---
<a href=
"../System.Runtime.Serialization/types/IFormatterConverter.html">System.Runtime.Serialization.IFormatterConverter
</a></li>
178 <li><a href=
"../System.Runtime.Serialization/types/FormatterServices.html">System.Runtime.Serialization.FormatterServices
</a></li>
181 <li><a href=
"../System.Runtime.Serialization/types/ObjectIDGenerator.html">System.Runtime.Serialization.ObjectIDGenerator
</a></li>
184 <li><a href=
"../System.Runtime.Serialization/types/ObjectManager.html">System.Runtime.Serialization.ObjectManager
</a></li>
187 <li><a href=
"../System.Runtime.Serialization/types/SerializationBinder.html">System.Runtime.Serialization.SerializationBinder
</a></li>
190 <li><a href=
"../System.Runtime.Serialization/types/SerializationInfo.html">System.Runtime.Serialization.SerializationInfo
</a></li>
193 <li><a href=
"../System.Runtime.Serialization/types/SerializationInfoEnumerator.html">System.Runtime.Serialization.SerializationInfoEnumerator
</a> ---
<a href=
"../System.Collections/types/IEnumerator.html">System.Collections.IEnumerator
</a></li>
196 <li><a href=
"../System.Runtime.Serialization/types/SurrogateSelector.html">System.Runtime.Serialization.SurrogateSelector
</a> ---
<a href=
"../System.Runtime.Serialization/types/ISurrogateSelector.html">System.Runtime.Serialization.ISurrogateSelector
</a></li>
199 <li><a href=
"../System/types/ValueType.html">System.ValueType
</a></li>
201 <li><a href=
"../System/types/Enum.html">System.Enum
</a></li>
203 <li><a href=
"../System.Runtime.Serialization/types/StreamingContextStates.html">System.Runtime.Serialization.StreamingContextStates
</a></li>
207 <li><a href=
"../System.Runtime.Serialization/types/SerializationEntry.html">System.Runtime.Serialization.SerializationEntry
</a></li>
210 <li><a href=
"../System.Runtime.Serialization/types/StreamingContext.html">System.Runtime.Serialization.StreamingContext
</a></li>
213 </ul><br><i><a href=
"../documentation_license.txt">
214 Copyright (c)
2002 Microsoft Corporation. All rights reserved.